package com.example.s08restful_sagger.service.impl;

import com.example.s08restful_sagger.service.IMessageService;
import org.apache.logging.log4j.message.Message;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: lazyfier
 * @create 2022-04-04 23:00
 */

@Service
public class MessageServiceImpl implements IMessageService {

    List<Message> list = new ArrayList<>();
//    {
//        list.add(new Message(1L,"你好","哈哈"));
//        list.add(new Message(2L,"吃了么","哈哈"));
//        list.add(new Message(3L,"拜拜","哈哈"));
//    }

    @Override
    public void save(Message m) {

    }

    @Override
    public List<Message> findAll() {
        return null;
    }

    @Override
    public Message findById(Long id) {
        return null;
    }

    @Override
    public void removeById(Long id) {

    }

    @Override
    public void updateById(Message m) {

    }

    @Override
    public void updateText(Message m) {

    }
}